package com.jfok.server.hibernate.system;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;

import com.jfok.server.common.annotation.FieldDefine;
import com.jfok.server.common.annotation.TableDefine;
import com.jfok.shared.RolePopedom;


@SuppressWarnings("serial")
@Entity
@org.hibernate.annotations.Entity(dynamicUpdate = true)
@TableDefine(group = "系统模块", id = 9901, title = "模块分组")
public class _ModuleGroup implements _IModuleControlInterface, Serializable {

	public static final String TITLE = "tf_title";

	@Id
	@FieldDefine(title = "模块分组序号", number = 10)
	@Column(nullable = false, length = 10)
	private String tf_moduleGroupId;

	@FieldDefine(title = "模块分组名称", nameField = true, number = 20)
	@Column(nullable = false, length = 50)
	private String tf_title;

	@FieldDefine(title = "描述", number = 30)
	private String tf_description;

	@FieldDefine(title = "图标地址", number = 40)
	private String tf_iconURL;

	@FieldDefine(title = "备注", number = 50)
	private String tf_remark;

	// 每一个此分组下的模块的权限定义
	@Transient
	private List<RolePopedom> popedoms;

	public _ModuleGroup() {

	}

	@Override
	public String toString() {
		return "_ModuleGroup [tf_moduleGroupId=" + tf_moduleGroupId + ", tf_title=" + tf_title
				+ ", tf_description=" + tf_description + ", tf_iconURL=" + tf_iconURL + ", tf_remark="
				+ tf_remark + "]";
	}

	public String getTf_moduleGroupId() {
		return tf_moduleGroupId;
	}

	public void setTf_moduleGroupId(String tf_moduleGroupId) {
		this.tf_moduleGroupId = tf_moduleGroupId;
	}

	public String getTf_title() {
		return tf_title;
	}

	public void setTf_title(String tf_title) {
		this.tf_title = tf_title;
	}

	public String getTf_description() {
		return tf_description;
	}

	public void setTf_description(String tf_description) {
		this.tf_description = tf_description;
	}

	public String getTf_iconURL() {
		return tf_iconURL;
	}

	public void setTf_iconURL(String tf_iconURL) {
		this.tf_iconURL = tf_iconURL;
	}

	public String getTf_remark() {
		return tf_remark;
	}

	public void setTf_remark(String tf_remark) {
		this.tf_remark = tf_remark;
	}

	public List<RolePopedom> getPopedoms() {
		return popedoms;
	}

	public void setPopedoms(List<RolePopedom> popedoms) {
		this.popedoms = popedoms;
	}

}
